package com.woniuxy02;

import javax.swing.*;
import java.util.Scanner;

/**
 * @author 作者
 * @create 2025-07-15 19:34
 */
public class Test11 {

    public static void main(String[] args) {
//        int a=1,b=2;
//        System.out.println(a==b);
//
//        if(a==b){
//            System.out.println("a==b");
//        }else{
//            System.out.println("a!=b");
//        }

        char operator='-';
        if(operator=='+'){
            System.out.println("+");
        }else if(operator=='-'){
            System.out.println("-");
        }

        Scanner sc = new Scanner(System.in);
        System.out.println("输入字符串");
        String s1=sc.next();
        String s2="aaa";

        // 10/0
        // + - / %
        System.out.println(s1==s2);
        System.out.println(s1.equals(s2));
        System.out.println(s2.equals(s1));
        System.out.println("aaa".equals(s1));
        System.out.println(s1.equals("aaa"));
    }
}
